package com.ganbo.editordemo.controller;

import com.ganbo.editordemo.service.EditorContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("/uEditor")
public class UeditorController {



    @Autowired
    EditorContentService editorContentService;

    @GetMapping("/index")
    public String index() {
        System.out.println("=============index");
        return "index";
    }

    @GetMapping("/saveOrUpdate")
    public String saveOrUpdate() {
        System.out.println("=============saveOrUpdate");
        return "jsps/uEditorForm";
    }

}
